package models

type Paper struct {
	Id            int    `xorm:"not null pk autoincr INT"`
	Title         string `xorm:"not null default '' comment('考试名称') VARCHAR(550)"`
	Intro         string `xorm:"not null default '' comment('描述') VARCHAR(200)"`
	Type          int    `xorm:"not null default 10 comment('题型 10-静态考试 20-随机出题') TINYINT"`
	ExerciseIds   string `xorm:"not null default '' comment('题目ID,type=10用') VARCHAR(500)"`
	GroupIds      string `xorm:"not null default '' comment('抽题的习题组ids，type=20用') VARCHAR(100)"`
	SingleNum     int    `xorm:"not null default 0 comment('单选题数，type=20用') INT"`
	SingleScore   string `xorm:"not null default 0.0 comment('单选分数，type=20用') DECIMAL(10,1)"`
	SingleHard    int    `xorm:"not null default 0 comment('单选难度，type=20用') TINYINT"`
	MultipleNum   int    `xorm:"not null default 0 comment('多选题数，type=20用') INT"`
	MultipleScore string `xorm:"not null default 0.0 comment('多选分数，type=20用') DECIMAL(10,1)"`
	MultipleHard  int    `xorm:"not null default 0 comment('多选难度，type=20用') TINYINT"`
	JudgeNum      int    `xorm:"not null default 0 comment('判断题数，type=20用') INT"`
	JudgeScore    string `xorm:"not null default 0.0 comment('判断题分数，type=20用') DECIMAL(10,1)"`
	JudgeHard     int    `xorm:"not null default 0 comment('判断难度，type=20用') TINYINT"`
	PassScore     int    `xorm:"not null default 60 comment('及格分数') TINYINT"`
	LastTime      int    `xorm:"not null default 60 comment('考试时间(分钟)') INT"`
	IsTitleOrder  int    `xorm:"not null default 10 comment('题序打乱 20-打乱 10-正常') TINYINT"`
	IsOptionOrder int    `xorm:"not null default 10 comment('选项打乱 20-打乱 10-正常') TINYINT"`
	Difficult     int    `xorm:"not null default 3 comment('难度') TINYINT"`
	Score         int    `xorm:"not null default 2 comment('总分数') TINYINT"`
	IsUse         int    `xorm:"not null default 20 comment('状态') index TINYINT"`
	CreatedAt     string `xorm:"created"`
	UpdatedAt     string `xorm:"updated"`
	DeletedAt     string `xorm:"deleted"`
}
